import { request } from './api-service';

export function statusCarEngine(id: number, status: 'started' | 'stopped') {
  return request(`engine?id=${id}&status=${status}`, { method: 'PATCH' });
}

export function switchCarToDriveMode(id: number, status = 'drive') {
  return request(`engine?id=${id}&status=${status}`, { method: 'PATCH' });
}
